﻿@{
	string FlowID = Request.QueryString["flowid"];
	string StepID = Request.QueryString["stepid"];
	string GroupID = Request.QueryString["groupid"];
	string TaskID = Request.QueryString["taskid"];
	string InstanceID = Request.QueryString["instanceid"];
	string DisplayModel = Request.QueryString["display"] ?? "0";
	string DBConnID = "06075250-30dc-4d32-bf97-e922cb30fac8";
	string DBTable = "LIMSSampleReceive";
	string DBTablePK = "ID";
	string DBTableTitle = "";
	if(InstanceID.IsNullOrEmpty()){InstanceID = Request.QueryString["instanceid1"];}
	YJ.Platform.Dictionary BDictionary = new YJ.Platform.Dictionary();
	YJ.Platform.WorkFlow BWorkFlow = new YJ.Platform.WorkFlow();
	YJ.Platform.WorkFlowTask BWorkFlowTask = new YJ.Platform.WorkFlowTask();
	string fieldStatus = BWorkFlow.GetFieldStatus(FlowID, StepID);
	LitJson.JsonData initData = BWorkFlow.GetFormData(DBConnID, DBTable, DBTablePK, InstanceID, fieldStatus, "{\"limssamplereceive.deliverydate\":\"yyyy-MM-dd\",\"limssamplereceive.receivedate\":\"yyyy-MM-dd\"}");
	string TaskTitle = BWorkFlow.GetFromFieldData(initData, DBTable, DBTableTitle);
}
<link href="~/Scripts/FlowRun/Forms/flowform.css" rel="stylesheet" type="text/css" />
<script src="~/Scripts/FlowRun/Forms/common.js" type="text/javascript" ></script>
<input type="hidden" id="Form_ValidateAlertType" name="Form_ValidateAlertType" value="1" />
<input type="hidden" id="LIMSSampleReceive." name="LIMSSampleReceive." value="@(TaskTitle.IsNullOrEmpty() ? BWorkFlow.GetAutoTaskTitle(FlowID, StepID, Request.QueryString["groupid"]) : TaskTitle)" />
<input type="hidden" id="Form_TitleField" name="Form_TitleField" value="LIMSSampleReceive." />
<input type="hidden" id="Form_DBConnID" name="Form_DBConnID" value="06075250-30dc-4d32-bf97-e922cb30fac8" />
<input type="hidden" id="Form_DBTable" name="Form_DBTable" value="LIMSSampleReceive" />
<input type="hidden" id="Form_DBTablePk" name="Form_DBTablePk" value="ID" />
<input type="hidden" id="Form_DBTableTitle" name="Form_DBTableTitle" value="" />
<input type="hidden" id="Form_AutoSaveData" name="Form_AutoSaveData" value="1" />
<textarea id="Form_DBTableTitleExpression" name="Form_DBTableTitleExpression" style="display:none;width:0;height:0;"></textarea>
<script type="text/javascript">
	var initData = @Html.Raw(BWorkFlow.GetFormDataJsonString(initData));
	var fieldStatus = "1"=="@Request.QueryString["isreadonly"]" ? {} : @Html.Raw(fieldStatus);
	var displayModel = '@DisplayModel';
	$(window).load(function (){
		formrun.initData(initData, "LIMSSampleReceive", fieldStatus, displayModel);
	});
</script>
<p><br/></p><p><br/></p><p><br/></p><table class="flowformtable tableF table table-bordered" data-sort="sortDisabled" cellspacing="0" cellpadding="0" align="center"><tbody><tr class="firstRow"><th rowspan="1" colspan="2" style="word-break: break-all;" valign="middle" align="center"><span class="title">样 本 接 收</span></th></tr><tr><th class="titleT" rowspan="1" colspan="2" valign="middle" align="left"><p class="titleO">样本信息</p></th></tr><tr class="topTr"><td class="top" rowspan="1" colspan="1" valign="middle" align="left"><p class="txt">编号</p><input type="text" type1="flow_serialnumber" id="LIMSSampleReceive.number" maxfiled="" name="LIMSSampleReceive.number" value="" sqlwhere="" length="" isflow="1" class="mytext" title="" readonly="" style="background-color: rgb(232, 232, 232);"/><input type="hidden" value="LIMSSampleReceive.number" name="HasSerialNumber"/><input type="hidden" value="{'formatstring':'','sqlwhere':'','length':'','maxfiled':''}" name="HasSerialNumberConfig_LIMSSampleReceive.number"/></td><td class="top" rowspan="1" colspan="1" style="word-break: break-all;" valign="middle" align="left"><p class="txt">样本批号</p><input type="text" id="LIMSSampleReceive.BatchNo" type1="flow_text" name="LIMSSampleReceive.BatchNo" value="" valuetype="0" isflow="1" class="mytext" title="" align="left"/></td></tr><tr><td rowspan="1" colspan="1" style="word-break: break-all;" valign="middle" align="left"><p class="txt">递送日期</p><input type="text" type1="flow_datetime" id="LIMSSampleReceive.DeliveryDate" name="LIMSSampleReceive.DeliveryDate" value="" format="yyyy-MM-dd" defaultvalue="" istime="1" daybefor="0" dayafter="0" currentmonth="0" isflow="1" class="mycalendar" title="" onchange="onchange_93bb2f3be3376b178d6b9fd9d0d749dc (this);"/><script type="text/javascript">function onchange_93bb2f3be3376b178d6b9fd9d0d749dc(srcObj){clickday();}</script></td><td rowspan="1" colspan="1" style="word-break: break-all;" valign="middle" align="left"><p class="txt">收样日期</p><input type="text" type1="flow_datetime" id="LIMSSampleReceive.ReceiveDate" name="LIMSSampleReceive.ReceiveDate" value="" format="yyyy-MM-dd" defaultvalue="" istime="1" daybefor="0" dayafter="0" currentmonth="0" isflow="1" class="mycalendar" title="" onchange="onchange_93bb2f3be3376b178d6b9fd9d0d749dc (this);"/><script type="text/javascript">function onchange_93bb2f3be3376b178d6b9fd9d0d749dc(srcObj){clickday();}</script></td></tr><tr><td rowspan="1" colspan="1" style="word-break: break-all;" valign="middle" align="left"><p class="txt">数量</p><input type="text" id="LIMSSampleReceive.DeliveryValue" type1="flow_text" name="LIMSSampleReceive.DeliveryValue" value="" valuetype="1" isflow="1" class="mytext" title="" align="left"/></td><td rowspan="1" colspan="1" style="word-break: break-all;" valign="middle" align="left"><p class="txt">递送类型</p><input type="text" id="LIMSSampleReceive.DeliveryType" type1="flow_text" name="LIMSSampleReceive.DeliveryType" value="" valuetype="0" isflow="1" class="mytext" title="" align="left"/></td></tr><tr class="bottomTr"><td class="bottom Tradio" rowspan="1" colspan="2" style="word-break: break-all;" valign="middle" align="left"><p class="txt">实验项目</p>@Html.Raw(new YJ.Platform.WorkFlowForm().GetCheckboxFromSql("06075250-30dc-4d32-bf97-e922cb30fac8", "select ProjectsName from LIMSProject", "LIMSSampleReceive.SampleProjectType", "", "isflow='1' type1='flow_checkbox'"))</td></tr></tbody></table>